import Vue from './filters'
import App from './App.vue'
import router from './router'
import store from './store'
// 导入封装后的axios
import axios from './http/req'
// 引入懒加载
import VueLazyload from 'vue-lazyload'
// 使用懒加载
// Vue.use(VueLazyload)
// import '@/assets/images/'
// 设置懒加载的备用图片
// const loadimage = require('./assets/images/bg.jpg')
import loadimage from "./assets/images/lazy.png"
Vue.use(VueLazyload, {
  loading: loadimage,
})


// 将axios挂载到Vue原型
Vue.prototype.$http = axios
Vue.config.productionTip = false
new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount('#app')
